import Vue from "vue";
import App from "./App.vue";
// import Antd from 'ant-design-vue';
// import 'ant-design-vue/dist/antd.css';
// antdv按需加载
import "./utils/lazyAntd";
// antdv按需加载icon
// 下面引入的是router的配置文件，并不是第三方库
import router from "./router";
import installApi from '../src/api';
import global from './api/common';
import cookie from './api/cookie';
import store from './store/index';
// 第三方组件
// import * as echarts from 'echarts';
import echarts from "./utils/initEcharts";

import Header from '../src/views/Components/Header.vue';
import Footer from '../src/views/Components/Footer.vue';
import LittleTitle from '../src/views/Components/LittleTitle.vue'
// 全局使用
Vue.component('Header',Header);
Vue.component('Footer',Footer);
Vue.component('LittleTitle',LittleTitle);

// Vue.use(Antd);
Vue.use(store);
installApi(Vue);

Vue.config.productionTip = false;

Vue.prototype.$_global = global;
Vue.prototype.$_cookie = cookie;
Vue.prototype.$echarts = echarts;
Vue.prototype.$store = store;

new Vue({
  router,
  store,
  render: function(h) {
    return h(App);
  }
}).$mount("#app");
